/*
package com.deepclassifieds.daas.ql.helper;

import org.antlr.runtime.CommonToken;
import org.antlr.runtime.tree.Tree;

import com.deepclassifieds.daas.ql.DaasqlParser;

public class DaasqlAstBuilder {

	public static Tree buildWhereClauseTree() {
        Tree tree = buildTree( DaasqlParser.AND, "and" );
        tree.addChild( buildEQ("id", 1024) );
        tree.addChild( buildEQ("count", 24) );
        return tree;
    }

    public static Tree buildEQ(String name, int value) {
        Tree tree = buildTree( DaasqlParser.EQ, "eq" );
        tree.addChild(buildTree(DaasqlParser.LPAR));
        tree.addChild(buildNAME(name));
        tree.addChild(buildTree(DaasqlParser.COMMA));
        tree.addChild(buildVALUE(value));
        tree.addChild(buildTree(DaasqlParser.RPAR));
        return tree;
    }

    public static Tree buildNAME( String name ) {
        return buildTree( DaasqlParser.NAME, name );
    }

    public static Tree buildVALUE( int value ) {
        return buildTree( DaasqlParser.INTEGER, Integer.toString(value) );
    }

    public static Tree buildTree( int type ) {
        return new DaasqlComparableTree( new CommonToken( type ) );
    }

    public static Tree buildTree( int type, String text ) {
        return new DaasqlComparableTree( new CommonToken( type, text ) );
    }
}
*/